// * {
//     /* chrome < 121 */
//     &::-webkit-scrollbar {
//         width: 6px;
//         height: 14px;
//     }

//     &::-webkit-scrollbar-button,
//     &::-webkit-scrollbar-corner {
//         background: transparent;
//     }

//     &::-webkit-scrollbar-thumb {
//         background-color: rgba(144, 147, 153, 0.3);
//         border-radius: 10px;
//     }
// }

@supports (-moz-appearance: none) {
    * {
        /* firefox */
        scrollbar-width: thin;
        scrollbar-color: rgba(144, 147, 153, 0.3) transparent;
    }
}

.container .el-table thead.is-group th.el-table__cell {
    background: var(--el-table-header-bg-color);
}


html.dark {
    color-scheme: dark;
    --el-color-primary: #0076d0;
    --el-color-primary-light-3: #54a1ee;
    --el-color-primary-light-5: #70b0f4;
    --el-color-primary-light-7: #213d5b;
    --el-color-primary-light-8: #1d3043;
    // --el-color-primary-light-9: #18222c;
    --el-color-primary-light-9: rgba(85, 144, 242, .14);
    --el-color-primary-dark-2: #69aaf0;
    --el-color-success: #67c23a;
    --el-color-success-light-3: #62a73f;
    --el-color-success-light-5: #98e86f;
    --el-color-success-light-7: #2d481f;
    --el-color-success-light-8: #25371c;
    --el-color-success-light-9: #1c2518;
    --el-color-success-dark-2: #85ce61;
    --el-color-warning: #e6a23c;
    --el-color-warning-light-3: #f8c67c;
    --el-color-warning-light-5: #fbd7a1;
    --el-color-warning-light-7: #533f20;
    --el-color-warning-light-8: #3e301c;
    --el-color-warning-light-9: #292218;
    --el-color-warning-dark-2: #ebb563;
    --el-color-danger: #ff8484;
    --el-color-danger-light-3: #ff9494;
    --el-color-danger-light-5: #ad7272;
    --el-color-danger-light-7: #582e2e;
    --el-color-danger-light-8: #412626;
    --el-color-danger-light-9: #2b1d1d;
    --el-color-danger-dark-2: #f78989;
    --el-color-error: #f56c6c;
    --el-color-error-light-3: #b25252;
    --el-color-error-light-5: #854040;
    --el-color-error-light-7: #582e2e;
    --el-color-error-light-8: #412626;
    --el-color-error-light-9: #2b1d1d;
    --el-color-error-dark-2: #f78989;
    --el-color-info: #909399;
    --el-color-info-light-3: #6b6d71;
    --el-color-info-light-5: #525457;
    --el-color-info-light-7: #393a3c;
    --el-color-info-light-8: #2d2d2f;
    --el-color-info-light-9: #202121;
    --el-color-info-dark-2: #a6a9ad;
    --el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, 0.36), 0px 8px 20px rgba(0, 0, 0, 0.72);
    --el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, 0.72);
    --el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, 0.72);
    --el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, 0.72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;
    // --el-bg-color-page: #0a0a0a !important;
    --el-bg-color-page: rgb(1, 7, 18) !important;
    // --el-bg-color: #141414;
    --el-bg-color: rgb(4, 34, 83);
    // --el-bg-color-overlay: #1d1e1f;
    --el-bg-color-overlay: rgb(4, 34, 83);
    --el-text-color-primary: #ffffff;
    --el-text-color-regular: #f3f5fa;
    --el-text-color-secondary: #bbc0cb;
    --el-text-color-placeholder: #c3c8d3;
    --el-text-color-disabled: #6C6E72;
    --el-border-color-darker: #636466;
    --el-border-color-dark: #58585B;
    --el-border-color: #4C4D4F;
    // --el-border-color-light: #414243;
    --el-border-color-light: #393e43;
    // --el-border-color-lighter: #363637;
    --el-border-color-lighter: #393983;
    --el-border-color-extra-light: #2B2B2C;
    --el-fill-color-darker: #424243;
    --el-fill-color-dark: #39393A;
    --el-fill-color: rgb(12, 60, 137);
    // --el-fill-color-light: #262727;
    --el-fill-color-light: rgb(0, 25, 68);
    --el-fill-color-lighter: rgb(5, 45, 114);
    --el-fill-color-extra-light: #191919;
    --el-fill-color-blank: transparent;
    --el-mask-color: rgba(0, 0, 0, 0.8);

    --el-mask-color-extra-light: rgba(0, 0, 0, 0.3);

    .el-button {
        --el-button-disabled-text-color: rgba(255, 255, 255, 0.5);
    }

    .el-button--primary {
        --el-button-bg-color: var(--el-color-primary-dark-2);
        --el-button-hover-link-text-color: var(--el-color-primary);
    }

    .el-button--primary:not(.is-link) {
        --el-button-text-color: var(--el-text-color-primary);
    }

    --el-disabled-bg-color: rgb(5, 45, 114);

    /*自定义*/
    --el-bg-color-rgb: 20,
    20,
    20;
}

html.dark {
    #app {
        background: url('@/assets/images/bg.blue.jpg');
        background-size: cover;
    }
    &._transparent_bg_ #app {
        background: transparent;
    }

    .login-page.login {
        --bgc-theme: transparent;
        --bgi-width: 0;
    }

    .login-left__wave {
        display: none;
    }

    .el-card {
        --el-card-bg-color: var(--el-bg-color-overlay)
    }

    .el-empty {
        --el-empty-fill-color-0: rgb(96, 148, 238);
        --el-empty-fill-color-1: rgb(77, 130, 221);
        --el-empty-fill-color-2: rgb(63, 113, 198);
        --el-empty-fill-color-3: rgb(29, 75, 156);
        --el-empty-fill-color-4: rgb(5, 45, 114);
        --el-empty-fill-color-5: rgb(2, 34, 91);
        --el-empty-fill-color-6: rgb(1, 31, 83);
        --el-empty-fill-color-7: rgb(5, 45, 114);
        --el-empty-fill-color-8: rgb(5, 45, 114);
        --el-empty-fill-color-9: rgb(5, 45, 114);
    }

    // 流程图
    .zm-tree-org {
        &:not(.xxx) {
            background: transparent !important;
            box-shadow: none !important;
        }
        color: var(--el-text-color-primary) !important;

        .tree-org-node__content .tree-org-node__inner {
            box-shadow: 0 1px 5px rgba(255, 255, 255, .15);
            background-color: rgb(25, 76, 163) !important;
        }

        .zm-tree-handle .zm-tree-handle-item {
            background: var(--el-bg-color-overlay) !important;
            color: var(--el-text-color-primary);
        }
    }

    /** blue */
    .el-main {
        --el-main-padding: 0;
    }

    .el-checkbox {
        --el-checkbox-input-border: 1px solid #dfdfdf;
    }

    .el-radio {
        --el-radio-input-border: 1px solid #dfdfdf;
    }

    .el-drawer__header {
        color: #dfdfdf;
    }

    .navigation,
    .el-main,
    .container,
    .bg-container {
        background: transparent !important;
    }

    // .el-main > .container {
    //     background: rgba(85, 144, 242, .14);
    //     border: 1px solid #435d80;
    //     box-shadow: 0 0 35px rgba(85, 144, 242, .35) inset;
    //     border-radius: 6px 8px;
    // }
    .energy-item.active {
        background-color: rgb(5, 45, 114) !important;
    }

    :not(.free-theme) {
        & > .el-table {
            // --el-table-border-color: transparent;
            --el-table-header-bg-color: #294c95;
            // --el-table-header-bg-color: rgb(5, 45, 114) !important;
            --el-table-tr-bg-color: transparent;
            // --el-table-tr-bg-color: rgba(85, 144, 242, .14);
            --el-table-row-hover-bg-color: rgb(2, 40, 104);
            --el-table-header-text-color: #efefef;
        }
    }
    
    .description-label {
        background-color: #294c95;
    }

    .data-container {
        .description {
            &+.description {
                border-top: 1px solid var(--el-border-color-lighter);
            }
        }
    }

    .zm-tree-org.xxx,
    .el-card,
    .aside-menu-panel,
    .container .panel,
    .container .view-tree,
    .alpha-block {
        background: rgba(85, 144, 242, .14);
        border: 1px solid #435d80;
        box-shadow: 0 0 35px rgba(85, 144, 242, .35) inset;
        border-radius: 6px 8px;
    }

    .transparent-el-table .alpha-block {
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    :not(.free-theme) {
        & > .el-table__body-wrapper tr td.el-table-fixed-column--left,
        & > .el-table__body-wrapper tr td.el-table-fixed-column--right,
        & > .el-table__footer-wrapper tr td.el-table-fixed-column--left,
        & > .el-table__footer-wrapper tr td.el-table-fixed-column--right,
        & > .el-table__header-wrapper tr td.el-table-fixed-column--left,
        & > .el-table__header-wrapper tr td.el-table-fixed-column--right {
            background-color: #092766;
        }

        & > .el-table__body-wrapper tr th.el-table-fixed-column--left,
        & > .el-table__body-wrapper tr th.el-table-fixed-column--right,
        & > .el-table__footer-wrapper tr th.el-table-fixed-column--left,
        & > .el-table__footer-wrapper tr th.el-table-fixed-column--right,
        & > .el-table__header-wrapper tr th.el-table-fixed-column--left,
        & > .el-table__header-wrapper tr th.el-table-fixed-column--right {
            background-color: #294c95;
        }
    }

    .free-theme {
        & > .el-table {
            --el-table-border-color: rgb(235 238 245);
            --el-table-border: 1px solid #ebeef5;
            --el-table-text-color: rgb(96 98 102);
            --el-table-header-text-color: rgb(144 147 153);
            --el-table-row-hover-bg-color: rgb(245 247 250);
            --el-table-current-row-bg-color: rgb(236 245 255);
            --el-table-header-bg-color: #eff2f7;
            --el-table-fixed-box-shadow: var(--el-box-shadow-light);
            --el-table-bg-color: #ffffff;
            --el-table-tr-bg-color: #ffffff;
            --el-table-expanded-cell-bg-color: #ffffff;
            --el-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);
            --el-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, 0.15);
        }
    }

    .global-loading {
        background-color: rgba(85, 144, 242, .08) !important;
    }

    .container.fill {
        margin: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .navigation {
        &-item {
            --auxiliary-color: transparent;
            --el-text-color-disabled: rgba(85, 144, 242, .14);
            --el-fill-color-light: rgba(85, 144, 242, .14);
            --el-color-primary-light-9: rgba(85, 144, 242, .14);

            &.active {
                box-shadow: 0 0 35px rgba(85, 144, 242, .35) inset;
                background: rgba(85, 144, 242, .14);
                border-radius: 0;
            }
        }
    }

    .login-right__form,
    .el-popover .navigation,
    .el-select-dropdown__item.is-hovering {
        box-shadow: 0 0 35px rgba(85, 144, 242, .35) inset;
        background: rgba(85, 144, 242, .14);
    }

    .el-popper.is-dark {
        --el-text-color-primary: rgb(41, 97, 188);
    }

    .el-popper.is-light,
    .el-select__popper.el-popper,
    .container .panel,
    .dictionary-left,
    .container .view-tree,
    .el-popper.is-dark {
        border: none;
    }

    .el-descriptions {
        --el-descriptions-item-bordered-label-background: rgba(85, 144, 242, .14) !important;
    }

    .search-dialog__item h3,
    .el-popper.is-dark {
        color: var(--el-text-color-regular);
    }

    .el-tree {
        --el-tree-node-hover-bg-color: var(--el-color-primary-light-9);
    }

    .border {
        border: none;
        background-color: rgba(85, 144, 242, .08) !important;
    }


    .el-date-editor.el-input__wrapper,
    .el-input__wrapper,
    .el-select__wrapper {
        box-shadow: none;
        background-color: rgba(85, 144, 242, .3);
    }

    .el-date-editor.el-input__wrapper:hover,
    .el-input__wrapper:hover,
    .el-select__wrapper.is-hovering:not(.is-focused) {
        box-shadow: none;
        background-color: rgba(85, 144, 242, .4);
    }

    .is-error .el-input__wrapper {
        box-shadow: 0 0 0 1px var(--el-color-danger) inset;
    }

    .header-tools {
        color: var(--el-text-color-regular);
    }

    .dark-border-color {
        border: 1px solid var(--el-border-color-lighter);
        box-shadow: none;
    }

    .el-tag.el-tag--info {
        --el-tag-bg-color: var(--el-bg-color);
        --el-tag-text-color: var(--el-color-primary);
    }
}

:root {
    --base-font-size: 14px;
}

html._transparent_bg_ {
  font-size: var(--base-font-size);
  transition: font-size 0.5s ease-in-out;
}

@media (min-width: 768px) {
  :root {
    --base-font-size: 12px;
  }
}

@media (min-width: 1024px) {
  :root {
    --base-font-size: 13px;
  }
}

@media (min-width: 1440px) {
  :root {
    --base-font-size: 14px;
  }
}